package com.xinyue.center.service;

import com.xinyue.center.dao.entity.Account;
import com.xinyue.center.messages.request.LoginParam;

import java.util.Optional;

public interface IAccountService {

    Optional<Account> login(LoginParam loginParam) throws Exception;

    Account register(LoginParam loginParam);

    String createUserToken(Account account);

    Account selectAccount(String accountId);

    void updateAccount(Account account);


}
